/**
 * 
 */




LoginPage = {
		'BindEvent': function(){
			$('#btnSubmit').bind('click', function(){
				var user_id = $('#txtUserId').val();
				var pwd = $('#txtPwd').val();
				var result = AdminService.Login(user_id, pwd);
				if(result.IsSuccess == 1){
					alert('登录成功');
				}
				else{
					alert('登录失败:' + result.ErrorMsg);
				}
			});
			
		},
};


$(document).ready(function(){
//	var result = [];
//	result.issuccess = 0;
//	result.errorMsg = "asdasd";
//	result.aaa = "bgfbsf";
//	alert(result.errorMsg);
	LoginPage.BindEvent();
});


